import type { AppRouteModule } from '@/router/types';

import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const msManage: AppRouteModule = {
  path: '/ms',
  name: 'msManage',
  component: LAYOUT,
  redirect: '/ms/icon',
  meta: {
    orderNo: 19,
    icon: 'ion:git-compare-outline',
    title: t('routes.demo.ms.msManage'),
    roles: 'ms_user,manage',
  },

  children: [
    // {
    //   path: 'dictList',
    //   name: 'dictList',
    //   component: () => import('@/views/msManage/dictList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.ms.dictList'),
    //   },
    // },
    {
      path: 'mouldList',
      name: 'mouldList',
      component: () => import('@/views/msManage/mouldlList/list/index.vue'),
      meta: {
        title: t('routes.demo.ms.priceList'),
      },
    },
    // {
    //   path: 'priceList',
    //   name: 'priceList',
    //   component: () => import('@/views/msManage/priceList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.ms.priceList'),
    //   },
    // },
    // {
    //   path: 'purchaseOrderList',
    //   name: 'purchaseOrderList',
    //   component: () => import('@/views/msManage/purchaseOrderList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.ms.purchaseOrderList'),
    //   },
    // },
    // {
    //   path: 'outsourceOrderList',
    //   name: 'outsourceOrderList',
    //   component: () => import('@/views/msManage/outsourceOrderList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.ms.outsourceOrderList'),
    //   },
    // },
    // {
    //   path: 'testDemo',
    //   name: 'TestDemo',
    //   // @ts-ignore
    //   // component: () => import('@/views/demo/table/VxeTable.vue'),
    //
    //   component: () => import('@/views/demo/feat/icon/index.vue'),
    //   meta: {
    //     title: t('routes.demo.feat.testDemo'),
    //   },
    // },
  ],
};

export default msManage;
